package com.sinodata.bsm.common.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * HealthStatusStatDay entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "HEALTH_STATUS_STAT_DAY")
public class HealthStatusStatDay implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 9055096999801799217L;

    // Fields    
    private Long id;
    private Long resId;
    private Integer lastStatus;
    private Integer currStatus;
    private Date chgTime;
    private Date lastStatusTime;

    // Constructors

    /** default constructor */
    public HealthStatusStatDay() {
    }

    /** minimal constructor */
    public HealthStatusStatDay(Long id) {
        this.id = id;
    }

    /** full constructor */
    public HealthStatusStatDay(Long id, Long resId, Integer lastStatus, Integer currStatus, Date chgTime, Date lastStatusTime) {
        this.id = id;
        this.resId = resId;
        this.lastStatus = lastStatus;
        this.currStatus = currStatus;
        this.chgTime = chgTime;
        this.lastStatusTime = lastStatusTime;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "HEALTH_STATUS_STAT_DAY_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "LAST_STATUS", precision = 1, scale = 0)
    public Integer getLastStatus() {
        return this.lastStatus;
    }

    public void setLastStatus(Integer lastStatus) {
        this.lastStatus = lastStatus;
    }

    @Column(name = "CURR_STATUS", precision = 1, scale = 0)
    public Integer getCurrStatus() {
        return this.currStatus;
    }

    public void setCurrStatus(Integer currStatus) {
        this.currStatus = currStatus;
    }

    @Column(name = "CHG_TIME", length = 7)
    public Date getChgTime() {
        return this.chgTime;
    }

    public void setChgTime(Date chgTime) {
        this.chgTime = chgTime;
    }

    @Column(name = "LAST_STATUS_TIME", length = 7)
    public Date getLastStatusTime() {
        return this.lastStatusTime;
    }

    public void setLastStatusTime(Date lastStatusTime) {
        this.lastStatusTime = lastStatusTime;
    }

    @Override
    public String toString() {
        return "HealthStatusStatDay [id=" + id + ", resId=" + resId + ", lastStatus=" + lastStatus + ", currStatus=" + currStatus + ", chgTime=" + chgTime + ", lastStatusTime=" + lastStatusTime + "]";
    }

}